import {HttpGet,HttpPost,UPLoad,exportFileRequest} from "../tools/http.js"

const path ="/pictures"



const List=(params)=>{
        return HttpGet({url:path+"/list",params})
}

const listUrl=(params)=>{
        return HttpGet({url:path+"/listUrl",params})
}

const userList=(params)=>{
        return HttpGet({url:path+"/userList",params})
}

const workList=(params)=>{
        return HttpGet({url:path+"/workList",params})
}

const UPLoadFileList=(params)=>{
        return UPLoad({url:path+"/uploadList",params})
}
const delImg=(params)=>{
        return HttpPost({url:path+"/deleteImgId",params})
}

const download=(params)=>{
        return exportFileRequest({url:path+"/download",params})
}

export {
        List,listUrl,userList,workList,UPLoadFileList,delImg,download
}